package com.ruoyi.funding.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 科研经费对象 funding_research
 * 
 * @author ycl
 * @date 2025-01-06
 */
public class FundingResearch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 经费id */
    private Long fundingId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 资金来源id */
    @Excel(name = "资金来源id")
    private Long sourceId;

    /** 总预算 */
    @Excel(name = "总预算")
    private BigDecimal totalBudget;

    /** 已拨款金额 */
    @Excel(name = "已拨款金额")
    private BigDecimal allocatedFunds;

    /** 已支出金额 */
    @Excel(name = "已支出金额")
    private BigDecimal spentFunds;

    /** 剩余金额 */
    @Excel(name = "剩余金额")
    private Long remainingFunds;

    /** 删除人 */
    @Excel(name = "删除人")
    private String deleteBy;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer version;


    //下面是修改
    @Excel(name = "资金来源名称")
    private String sourceName;
    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public void setFundingId(Long fundingId)
    {
        this.fundingId = fundingId;
    }

    public Long getFundingId() 
    {
        return fundingId;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setTotalBudget(BigDecimal totalBudget) 
    {
        this.totalBudget = totalBudget;
    }

    public BigDecimal getTotalBudget() 
    {
        return totalBudget;
    }
    public void setAllocatedFunds(BigDecimal allocatedFunds) 
    {
        this.allocatedFunds = allocatedFunds;
    }

    public BigDecimal getAllocatedFunds() 
    {
        return allocatedFunds;
    }
    public void setSpentFunds(BigDecimal spentFunds) 
    {
        this.spentFunds = spentFunds;
    }

    public BigDecimal getSpentFunds() 
    {
        return spentFunds;
    }
    public void setRemainingFunds(Long remainingFunds) 
    {
        this.remainingFunds = remainingFunds;
    }

    public Long getRemainingFunds() 
    {
        return remainingFunds;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fundingId", getFundingId())
            .append("projectId", getProjectId())
            .append("sourceId", getSourceId())
            .append("totalBudget", getTotalBudget())
            .append("allocatedFunds", getAllocatedFunds())
            .append("spentFunds", getSpentFunds())
            .append("remainingFunds", getRemainingFunds())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .toString();
    }
}
